package light.im.util;

public class ByteConvertor {

	public static int getInt(byte[] src, int start)
	{
		if(src.length-start < 4)
			throw new RuntimeException("must has 4 byte data to convert to integer.");
		return src[start]<<24 | src[start+1]<<16 | src[start+2]<<8 | src[start+3];
	}
}
